<html>
<head><meta charset="utf-8"><title>Memory tracer · t-libs/wg-allocators · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/197181-t-libs/wg-allocators/index.html">t-libs/wg-allocators</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/197181-t-libs/wg-allocators/topic/Memory.20tracer.html">Memory tracer</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="204830131"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/197181-t-libs/wg-allocators/topic/Memory%20tracer/near/204830131" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/197181-t-libs/wg-allocators/topic/Memory.20tracer.html#204830131">(Jul 23 2020 at 17:50)</a>:</h4>
<p>There are few memory tracers discussed/described since it is fairly easy to write one, could we have an official one or at least mention one/some?</p>



<a name="204849335"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/197181-t-libs/wg-allocators/topic/Memory%20tracer/near/204849335" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tim Diekmann <a href="https://rust-lang.github.io/zulip_archive/stream/197181-t-libs/wg-allocators/topic/Memory.20tracer.html#204849335">(Jul 23 2020 at 20:24)</a>:</h4>
<p>Not an official solution but you may want to take a look at the <a href="https://docs.rs/alloc-compose/0.4.1/alloc_compose/struct.Proxy.html"><code>Proxy</code></a> Allocator from the <a href="https://crates.io/crates/alloc-compose"><code>alloc-compose</code>-crate</a>.</p>



<a name="204849600"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/197181-t-libs/wg-allocators/topic/Memory%20tracer/near/204849600" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tim Diekmann <a href="https://rust-lang.github.io/zulip_archive/stream/197181-t-libs/wg-allocators/topic/Memory.20tracer.html#204849600">(Jul 23 2020 at 20:27)</a>:</h4>
<p>This allocator calls a callback for every method, while the callback is defined by a trait. The crate is maintained by me and I try to keep it on par with the official <code>AllocRef</code> trait.</p>



<a name="205677662"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/197181-t-libs/wg-allocators/topic/Memory%20tracer/near/205677662" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/197181-t-libs/wg-allocators/topic/Memory.20tracer.html#205677662">(Aug 01 2020 at 11:37)</a>:</h4>
<p>thank you!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>